const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  publicPath: process.env.NODE_ENV === 'production'
  ? ''
  : '/',
  outputDir: process.env.NODE_ENV === 'production'
  ? 'dist'
  : 'devDist',
  // 关闭语法自动检测
  lintOnSave:false,
  // 配置全局样式
  css: {
    loaderOptions: {
      sass: {
        additionalData: `@import "./src/style/main.scss";`
      },   
    }
  },
  transpileDependencies: true
})
